package org.zlpt.entity.co;

import lombok.Data;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

import java.util.Date;

@Data
@DataType
public class SupervisionDepartmentCO {
    // 监管部门
    public static final String keyPrefiex = "sys_supervision_department:";

    // 监管部门id
    @Property
    private Long supervisorId;
    // 用户id
    @Property
    private Long userId;
    // 部门名称
    @Property
    private Long supervisorName;
    // 部门类型
    @Property
    private Integer supervisorType;
    // 创建人id
    @Property
    private Long createBy;
    // 创建时间
    @Property
    private Date createTime;
    // 修改人id
    @Property
    private Long updateBy;
    // 修改时间
    @Property
    private Date updateTime;


    public String formKey() {
        return keyPrefiex + supervisorId;
    }
    public static String formKey(Long userId) {
        return keyPrefiex + userId;
    }
}
